package com.nervenets.shopping.controller.user.params;

import com.nervenets.general.web.params.Params;
import com.nervenets.shopping.enumeration.Gender;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class WaLoginParams implements Params {
    @ApiModelProperty(value = "微信openId", required = true)
    @NotBlank(message = "小程序授权JSCode不能为空")
    private String jsCode;
    private String encryptedData;
    private String iv;
    @ApiModelProperty(value = "用户头像")
    private String avatar;
    @ApiModelProperty(value = "用户昵称")
    private String name;
    @ApiModelProperty(value = "性别")
    private Gender gender;
    @ApiModelProperty(value = "邀请人ID")
    private long inviteUserId;
}
